import request from "@/utils/request.js"
const API = {
    MENU_URL: '/sys/menu/list',//菜单列表
    MENU_ROLE_URL: '/sys/menu/role/list',//获取角色菜单列表
    MENU_URL_ADD: '/sys/menu/add',//新增菜单
    MENU_URL_EDIT: '/sys/menu/edit',//修改菜单
    MENU_URL_DELETE: '/sys/menu/delete',//删除菜单
    MENU_URL_ENABLE: '/sys/menu/enable',//启用菜单
    MENU_URL_DISABLE: '/sys/menu/disable',//禁用菜单
    MENU_URL_GET: '/sys/menu/get',//获取菜单
    MENU_URL_GET_LIST: '/sys/menu/getList',//获取菜单列表
}
export const menuList = values => request.post(API.MENU_URL, values);
export const menuRoleList = values => request.post(API.MENU_ROLE_URL, values);
export const menuAdd = values => request.post(API.MENU_URL_ADD, values);
export const menuEdit = values => request.post(API.MENU_URL_EDIT, values);
export const menuDelete = values => request.post(API.MENU_URL_DELETE, values);
export const menuEnable = values => request.post(API.MENU_URL_ENABLE, values);
export const menuDisable = values => request.post(API.MENU_URL_DISABLE, values);
export const menuGet = values => request.post(API.MENU_URL_GET, values);
export const menuGetList = values => request.post(API.MENU_URL_GET_LIST, values);